<?php

/**
 * game admin form
 *
 * @package    web-game
 * @subpackage game
 * @author     Your name here
 */
class GameAdminForm extends BaseGameForm
{
  public function configure()
  {
    parent::configure();
  }
  //form upload image
   protected function createMediaFormForImage()  
  {  
    // get the DmMedia form  
    $form = parent::createMediaFormForImage();  
 
    // choose mime types allowed  
    $form->setMimeTypeWhiteList(array(  
      'image/jpeg',  
      'image/png'  
    ));  
   //remove form field for image
   unset($form['legend'], $form['author'], $form['license']);  
    return $form; 
  }
  
}